﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace CIS.Client.Models
{
    public class MenuBar:BindableBase
    {
        #region TreeView 
        /// <summary>
        /// 实例化对象时，同时实列化子菜单对象
        /// </summary>
        public MenuBar()
        {
            MenuItems = new List<MenuBar>();
        }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string? MenuName { get; set; }

        /// <summary>
        /// 菜单图标
        /// </summary>
        public string? MenuIcon { get; set; }

        /// <summary>
        /// 菜单导航路径
        /// </summary>
        public string? MenuPath { get; set; }

        /// <summary>
        /// 子菜单列表
        /// </summary>
        public List<MenuBar>? MenuItems { get; set; }

        #endregion

        #region 自定义FlodMenu
        private string? _headerText;
        public string? HeaderText
        {
            get { return _headerText; }
            set { _headerText = value; }
        }

        private List<object>? _items = new List<object>();
        public List<object>? Items
        {
            get { return _items; }
            set { _items = value; }
        }

        private Geometry? _iconGeometry;
        public Geometry? IconGeometry
        {
            get { return _iconGeometry; }
            set { _iconGeometry = value; }
        }
        #endregion
    }
}
